-- GENERATED SPELL FOR [High Executor Darthalia] --


function spell0_2215(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2215', 559, 1)
end

function spell1_2215(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(23511,pUnit)
pUnit:RegisterEvent('Sorts_2215', 30269, 1)
end

function spell2_2215(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2215', 6292, 1)
end

function spell3_2215(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2215', 10266, 1)
end

function Sorts_2215(pUnit, Event)
local choix_sorts_2215 = math.random(0, 3)
if choix_sorts_2215 == 0 then
pUnit:RegisterEvent('spell0_2215', 1, 1)
end
if choix_sorts_2215 == 1 then
pUnit:RegisterEvent('spell1_2215', 1, 1)
end
if choix_sorts_2215 == 2 then
pUnit:RegisterEvent('spell2_2215', 1, 1)
end
if choix_sorts_2215 == 3 then
pUnit:RegisterEvent('spell3_2215', 1, 1)
end
end

function mob2215_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2215', math.random(1500, 3000), 1)
end

function mob2215_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2215_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2215_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2215, 1, 'mob2215_Action')
RegisterUnitEvent(2215, 2, 'mob2215_Leave')
RegisterUnitEvent(2215, 3, 'mob2215_Kill')
RegisterUnitEvent(2215, 4, 'mob2215_Die')
